Fortran to Python Interface Generator with an Application to Aerospace Engineering
نویسندگان
چکیده
FPIG — Fortran to Python Interface Generator — is a tool for generating Python C/API extension modules that interface Fortran 77/90/95 codes with Python. This tool automates the process of interface generation by scanning the Fortran source code to determine the signatures of Fortran routines and creating a Python C/API module that contains the corresponding interface functions. FPIG also attempts to find dependence relations between the arguments of a Fortran routine call (e.g. an array and its dimensions) and constructs interface functions with potentially fewer arguments. The tool is extremely flexible since the user has control over the generation process of the interface by specifying the desired function signatures. The home page for FPIG can be found at http://cens.ioc.ee/projects/f2py2e/. FPIG has been used successfully to wrap a large number of Fortran programs and libraries. Advances in computational science have led to large improvements in the modeling of physical systems which are often a result of the coupling of a variety of physical models that were typically run in isolation. Since a majority of the available physical models have been previously written in Fortran, the importance of FPIG in accomplishing these couplings cannot be understated. In this paper, we present an application of FPIG to create an object-oriented framework for aero-structural analysis and design of aircraft.
منابع مشابه
pyOpt: A Python-Based Object-Oriented Framework for Nonlinear Constrained Optimization
We present pyOpt, an object-oriented framework for formulating and solving nonlinear constrained optimization problems in an efficient, reusable and portable manner. The framework uses object-oriented concepts, such as class inheritance and operator overloading, to maintain a distinct separation between the problem formulation and the optimization approach used to solve the problem. This create...
متن کاملATHLET Framework for Embedding/Extending: An Efficient, Flexible & Easy-to-use Python Framework to a Large FORTRAN Code
— Over the years, large scientific code packages have been successfully developed using FORTRAN. Today, maintaining and extending these codes is a challenging task and often forbids several possibilities. Rewriting legacy code packages is almost prohibitive due to lacking resources and inertia against changing functional codes. One way of tackling these challenges is to integrate scripting lang...
متن کاملExtending a scientific application with scripting capabilities
the more changes and additions became inevitable. Your coworkers eventually started asking for a better alternative to the modify-recompile-run routine, so you created an input file-based interface to your application. Suddenly, what used to be a single subroutine now has thousands of lines of code. Some users then decided they wanted a graphical user interface, so you created it using a differ...
متن کاملSimTensor: A synthetic tensor data generator
SimTensor is a multi-platform, open-source software for generating artificial tensor data (either with CP/PARAFAC or Tucker structure) for reproducible research on tensor factorization algorithms. SimTensor is a stand-alone application based on MATALB. It provides a wide range of facilities for generating tensor data with various configurations. It comes with a user-friendly graphical user inte...
متن کاملA Python interface to CASTEP
This report documents a successful pilot project and feasibility study for adding a Python interface to the CASTEP first principles materials modelling code. Such an interface will allow the growing Python community within the scientific computing field access to CASTEP functionality, without the requirement of learning Fortran. To achieve this, changes have been made to the CASTEP source code ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2001